<?php  
header ("Content-Type:text/xml");  
?> 
<photos>
<?php
if(isset($_GET['l']))
{
	$path = $_GET['l'].'/';
}else
{
	$path = '';
}
$directory = "../data/images/".$path;
$images = glob($directory ."*.{jpg,gif,png}", GLOB_BRACE );
foreach($images as $image)
{
?>
	<photo url="<?php echo $image; ?>" />
<?php
}
?>
</photos>